<?php
/**
 * Created by PhpStorm.
 * User: skytop
 * Date: 16-8-29
 * Time: 下午7:27
 */

namespace Admin\Model;

use Think\Model;
class AttrModel extends Model
{
    protected $_validate=array(
        array('name','require','请填写属性名称'),
        array('name','','此属性已存在',0,'unique',1),
        array('color','','此颜色已经存在',0,'unique',1)
    );
}